package com.syh.jn.scm.infrastructure.repository.model.base.goods;

import com.syh.core.ddd.infrastructure.repository.model.SuperBusinessModel;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 生产商
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@Table(name = "T_BASE_MANUFACTURER")
@EqualsAndHashCode(callSuper = true)
public class ManufacturerModel extends SuperBusinessModel {
  /**
   * 名称
   */
  @Column(name = "NAME", columnDefinition = "varchar(50) COMMENT '生产商名称'")
  private String name;
  /**
   * 排序等级
   */
  @Column(name = "ORDER_LEVEL", columnDefinition = "int COMMENT '排序等级'")
  private Integer orderLevel;
  /**
   * 状态（-1：停用 1：启用）
   */
  @Column(name = "STATUS", columnDefinition = "smallint COMMENT '状态（-1：停用 1：启用）'")
  private Short status;
  /**
   * 创建日期
   */
  @Column(name = "CREATE_TIME_STAMP", columnDefinition = "bigint COMMENT '创建日期'")
  private Long createTimeStamp;
}
